package org.monkey.example.request.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
import org.monkey.example.request.entity.dto.RequestInfoDTO;
import org.monkey.example.request.entity.form.RequestInfoAddForm;
import org.monkey.example.request.entity.form.RequestInfoListForm;
import org.monkey.example.request.entity.form.RequestInfoPageForm;
import org.monkey.example.request.entity.form.RequestInfoSaveForm;
import org.monkey.example.request.entity.form.RequestInfoUpdateForm;

public interface RequestInfoService {

  RequestInfoDTO getById(Long id,boolean nullThrow);

  RequestInfoDTO add(RequestInfoAddForm addForm);

  RequestInfoDTO update(RequestInfoUpdateForm updateForm);

  RequestInfoDTO save(RequestInfoSaveForm saveForm);

  List<RequestInfoDTO> listAll();

  IPage<RequestInfoDTO> page(RequestInfoPageForm pageForm);

  List<RequestInfoDTO> list(RequestInfoListForm listForm);

  Boolean delete(Long id);
}
